<?php

namespace App\Http\Controllers\Login;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;

class IndexController extends Controller
{
    public  function  index(Request $request) {
        if(!$request->session()->has('user_name')) {
            return redirect('/');
        }
        $template = ['index','index2']; //随机模板
        return view('Login.'.$template[array_rand($template,1)]);
    }
}
